package com.domain;

public class Movies implements Comparable {
    
    private String category;
    private String language;
    private String description;
    private String movieName;
    private String year;

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    public String getMovieName() {
        return movieName;
    }

    public void setMovieName(String movieName) {
        this.movieName = movieName;
    }

    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }

  

    public int compareTo(Object o) {
        Movies mov = (Movies) o;
        return this.getMovieName().compareTo(mov.getMovieName());
    }
}
